<del class="container"><div class="pagination">
<?php
$params = $paging->params();
$order_status_selected  =   isset($order_status_selected)   ?   $order_status_selected  :   false;
$order_payment_status_selected  =   isset($order_payment_status_selected)   ?   $order_payment_status_selected  :   false;
$filter_start_date  =  isset($filter_start_date)   ?   $filter_start_date  :   false;
$keyword    =   isset($keyword)   ?   $keyword  :   false;
$cat_id    =   isset($cat_id)   ?   $cat_id  :   false;
$group_id    =   isset($group_id)   ?   $group_id  :   false;
$tag_id    =   isset($tag_id)   ?   $tag_id  :   false;

$paging->options(
    array(
            'url'=>array(
                'order_status'=>$order_status_selected,
                'payment_status'=>$order_payment_status_selected,
                'filter_start_date' =>  $filter_start_date,
                'keyword'   =>  $keyword,
                'cat_id'   =>  $cat_id,
                'group_id' => $group_id,
                'tag_id' => $tag_id
            )
    )
);
if ($params['pageCount'] >= 2):
?>

    <!-- Previous page link -->
<?php if ($params['page'] != 1): ?>
        <div class="button2-right">
            <?php echo $paging->first('Start', array('tag'=>'div', 'class'=> 'start')); ?>
         </div>
<?php endif; ?>
<?php if ($paging->hasPrev()): ?>
                <div class="button2-right">
                        <?php echo $paging->prev('Prev', array('tag'=>'div', 'class'=>'prev')); ?>
                </div>
<?php endif; ?>


                    <!-- Numbered page links -->
                    <div class="button2-left">
                        <div class="page">
                            <?php echo $paging->numbers(array('modulus'=> 5, 'separator'=>''));?>
                            </div>
                        </div>


                        <!-- Next page link -->
<?php if ($paging->hasNext()): ?>
                            <div class="button2-left">
                                <?php echo $paging->next('Next', array('tag'=> 'div', 'class'=> 'next')); ?>
                            </div>
<?php endif; ?>
<?php if ($params['page'] != $params['pageCount']): ?>
                                            <div class="button2-left">
                                                <?php echo $paging->last('End', array('tag'=>'div', 'class'=> 'end')); ?>
                                            </div>
<?php endif; ?>
                <div class="button2-left">
                    <div class="page"><span class="counter"><?php echo $paging->counter(array('format'=> 'Page %page% of %pages%')); ?> | <?php echo $total; ?> games </span></div>
                </div>
<?php endif; ?>
</div>
</del>